package com.ansuenjob.jsonBuilder;

import java.util.ArrayList;
import java.util.List;

import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

import com.ansuenjob.vo.CompanyVo;
import com.ansuenjob.vo.JobVO;


public class CompanyVoFunctions {
	public static List<CompanyVo> getCompanyVOs(JSONArray jsonArray) throws JSONException {
		CompanyVoBuilder builder = new CompanyVoBuilder();
		List<CompanyVo> companyVos = new ArrayList<CompanyVo>();
		for (int i = 0; i < jsonArray.length(); i++) {
			companyVos.add(builder.buildJson(jsonArray.getJSONObject(i)));
		}
		return companyVos;
	}
}
